﻿import React from 'react';
import ReactDOM from 'react-dom';
import {actions, connect} from 'mirrorx';
import { List } from 'antd-mobile';

import { FormattedMessage} from 'react-intl';
const Lang = window.LangMessage ||{};
const Item = List.Item;

class App extends React.Component { 
	constructor(props) {
		super(props);
	} 

	componentDidMount(){
		
    }
	
	toResetPassword = (id) =>{//跳转到重置密码页面,id==1表示登录密码，id==2表示交易密码
		actions.routing.push({
			pathname: 'password-reset',
            search: '?id='+id
		})
	}

	render() {
		return (<div className="password-manage">
			 <Item arrow="horizontal" onClick={() => this.toResetPassword(1)}><FormattedMessage id='log_pwd' defaultMessage='登录密码'/></Item>
			 <Item arrow="horizontal" onClick={() => this.toResetPassword(2)}><FormattedMessage id='transac_pwd' defaultMessage='交易密码'/></Item>
	  	</div>)
	}
}

export default App;